home *** CD-ROM | disk | FTP | other *** search
/ Champak 28 / Volume 28 - JOGO DISK .iso / Games / arc_triumph.swf / scripts / DefineButton2_84 / BUTTONCONDACTION on(release).as < prev   
Text File  |  2006-09-25  |  438b  |  17 lines

  1. on(release){
  2.    stopDrag();
  3.    target = this._droptarget;
  4.    clp = eval("/:currentlydragging").substr(2,2);
  5.    tgt = target.substr(3,2);
  6.    if(clp == tgt)
  7.    {
  8.       _root.soundclip.gotoAndPlay("playfit");
  9.       _root.completed += 1;
  10.       iAmInPlace = true;
  11.       clip_x = _root[_root.currentlydragging + "_x"];
  12.       clip_y = _root[_root.currentlydragging + "_y"];
  13.       this._x = clip_x;
  14.       this._y = clip_y;
  15.    }
  16. }
  17.